<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<!-- HTML file produced from file: manual.tex --
 -- using Hyperlatex v 2.3.1 (c) Otfried Cheong--
 -- on Emacs 21.4 (patch 12) "Portable Code" XEmacs Lucid, Wed Jun  2 18:57:01 2004 -->
<HEAD>
<TITLE>Scheme 48 Manual -- Shell commands</TITLE>

</HEAD><BODY BGCOLOR="#ffffff">
<EM>Scheme 48 Manual</EM> | <A HREF="s48manual.html#top_node">Contents</A> | In Chapter: <A HREF="s48manual_35.html">Libraries</A><BR>Previous: <A HREF="s48manual_51.html">Shell commands</A> | Next: <A HREF="s48manual_51.html">Shell commands</A>
<H2>Shell commands</H2>
<P>Structure <CODE>c-system-function</CODE> provides access to the C <CODE>system()</CODE>
 function.
<P><UL><LI><CODE>(have-system?<I></I>)&nbsp;-&gt;&nbsp;<I>boolean</I></CODE><A NAME="1">&nbsp;</A>
<LI><CODE>(system<I>&nbsp;string</I>)&nbsp;-&gt;&nbsp;<I>integer</I></CODE><A NAME="2">&nbsp;</A>
</UL>
<CODE>Have-system?</CODE> returns true if the underlying C implementation
 has a command processor.
<CODE>(System <CODE><I>string</I></CODE>)</CODE> passes <CODE><I>string</I></CODE> to the C
 <CODE>system()</CODE> function and returns the result.
<P><BLOCKQUOTE><PRE>
(begin
  (system "echo foo &gt; test-file")
  (call-with-input-file "test-file" read))
<CODE>-&gt;</CODE> 'foo
</PRE></BLOCKQUOTE>
<P><P>
  
Previous: <A HREF="s48manual_51.html">Shell commands</A> | Next: <A HREF="s48manual_51.html">Shell commands</A></BODY></HTML>
